package com.daz.manager.guideTheme.server.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daz.manager.guideTheme.dao.GuideThemeDao;
import com.daz.manager.guideTheme.pojo.GuideTheme;
import com.daz.manager.guideTheme.server.IGuideThemeSV;
import com.daz.manager.loginHis.pojo.LoginHis;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;

@Service
public class GuideThemeSVImpl implements IGuideThemeSV{

	@Autowired
	private GuideThemeDao dao;
	
	@Override
	public PageInfo<GuideTheme> qryByPrimaryKey(HashMap map, int pageNum,
			int pageSize) throws Exception {
		// TODO Auto-generated method stub
		PageHelper.startPage(pageNum, pageSize) ;
		List<GuideTheme> list = dao.qryByPrimaryKey(map);
		return new PageInfo<>(list);
		
	}

	@Override
	public void deleteByPrimaryKey(String id) throws Exception {
		// TODO Auto-generated method stub
		dao.deleteByPrimaryKey(id);
	}

	@Override
	public void insertSelective(GuideTheme value) throws Exception {
		// TODO Auto-generated method stub
		dao.insertSelective(value);
	}

	@Override
	public void updateByPrimaryKeySelective(GuideTheme vlaue) throws Exception {
		// TODO Auto-generated method stub
		dao.updateByPrimaryKeySelective(vlaue);
	}

}
